<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/3/12
 * Time: 15:36
 */
namespace Test\Controller;

use Common\Api\BoyeServiceApi;

class TestFreightController extends TestController{

    public function index(){
        if(IS_POST){
            $data = array(
                'cart_ids' => I('post.cart_ids',''),
                'address_id' => I('address_id',''),
                'uid' => I('uid',''),
                'api_ver'=>100,
                'notify_id'=>$this->notify_id,
                'type'=>'BY_Freight_cost',
                'alg'=>'md5',
            );

            $service = new BoyeServiceApi();

            $result = $service->callRemote("",$data,True);

            $this->parseResult($result);
        }
        $this->display();

    }

    private function parseResult($result){
        echo "解密后数据：";
        dump($result);
    }

}